package com.longyiqun.cm.mapper;

import com.longyiqun.cm.domain.ModuleEntity;
import com.longyiqun.cm.domain.TestCaseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * program: CaseManager
 * package: com.longyiqun.cm.mapper
 * author: 龙轶群
 * create: 2018-04-13 19:36
 **/

@Mapper
public interface ModuleMapper {

    @Select("SELECT module as name from test_case_entity group by module")
    List<ModuleEntity> findAllModule();

    @Select("SELECT Platform from ServerManage group by Platform")
    List<ModuleEntity> findAllPaltForm();

    @Select("SELECT Leader from ServerManage group by Leader")
    List<ModuleEntity> findAllLeaderForm();

    @Select("SELECT ServerName from ServerManage group by ServerName")
    List<ModuleEntity> findAllServerNameForm();


}
